<?php
/**
 * Created by PhpStorm.
 * User: 徐嘉宾
 * Date: 2016/8/11
 * Time: 19:12
 */
$this->registerCssFile('@web/css/backstage.css',['depends'=>['app\assets\AppAsset']]);
// var_dump($admininfo);die;
?>
<div class="main">
    <!--右侧内容-->
    <div class="cont">
        <div class="title">一级分类概况</div>
        <div class="details">
            <div class="details_operation clearfix">
                <div class="bui_select">
<!--                    <input type="button" value="添&nbsp;&nbsp;加" class="add">-->
                </div>
                <div class="fr">
                    <div class="text">
                        <span>日期：</span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1"><?= date("Y-m-d "); ?></option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
                        <div class="bui_select">
                            <select name="" id="" class="select">
                                <option value="1">Action speak louder than words.</option>
                            </select>
                        </div>
                    </div>
                    <div class="text">
                        <span></span>
<!--                        <input type="text" value="" class="search">-->
                    </div>
                </div>
            </div>
            <table class="table" cellspacing="0" cellpadding="0">
                <thead>
                <tr>
                    <th width="15%">id</th>
                    <th width="25%">name</th>
                    <th width="25%">操作</th>
                </tr>
                </thead>
                <tbody>
                <?php foreach ($class1info as $s){ ?>
                        <tr>
                            <td>
                                <?= $s->id ?>
                            </td>
                            <td>
                                <?= $s->name ?>
                            </td>
                            <td>
                                <a class='btn' href='./?r=admin/class1update&id=<?= $s->id ?>'>修改</a>
                                <a class='btn' href='./?r=admin/class1del&id=<?= $s->id ?>'>删除</a>
                            </td>
                        </tr>
                <?php   } ?>
                </tbody>
            </table>
        </div>
    </div>
</div>